﻿
namespace NetROS.Tiers.Windows.Forms
{
	/// <summary>
	/// This is the abstract edit form for the <see cref="Entities.OSKartica"/> entity.
	/// </summary>
	/// <remarks>This class is overwritten by .netTiers at each generation.</remarks>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class OSKarticaEditControlBase : System.Windows.Forms.UserControl
	{
		#region Fields
		
		//private System.Windows.Forms.TableLayoutPanel uxTableLayoutPanel;
		/// <summary>
		/// The ErrorProvider for the Entity;
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxErrorProvider;
		
		/// <summary>
		/// The BindingSource for the entity.
		///</summary>
		protected System.Windows.Forms.BindingSource uxBindingSource;
						
		
		/// <summary>
		/// TextBox for the ID property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxID;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ID property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDLabel;
		
		/// <summary>
		/// ComboBox for the IDOS property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDOS;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDOS property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDOSLabel;
		
		/// <summary>
		/// DataTimePicker for the Datum property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxDatum;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Datum property.
		/// </summary>
		protected System.Windows.Forms.Label uxDatumLabel;
		
		/// <summary>
		/// TextBox for the Kolicina property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxKolicina;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Kolicina property.
		/// </summary>
		protected System.Windows.Forms.Label uxKolicinaLabel;
		
		/// <summary>
		/// ComboBox for the IDTipRetka property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDTipRetka;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDTipRetka property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDTipRetkaLabel;
		
		/// <summary>
		/// ComboBox for the IDOrgJed property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDOrgJed;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDOrgJed property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDOrgJedLabel;
		
		/// <summary>
		/// ComboBox for the IDOsoba property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDOsoba;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDOsoba property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDOsobaLabel;
		
		/// <summary>
		/// TextBox for the Napomena property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxNapomena;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Napomena property.
		/// </summary>
		protected System.Windows.Forms.Label uxNapomenaLabel;
		
		/// <summary>
		/// TextBox for the IDStatus property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxIDStatus;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDStatus property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDStatusLabel;
		
		/// <summary>
		/// TextBox for the NabVr property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxNabVr;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the NabVr property.
		/// </summary>
		protected System.Windows.Forms.Label uxNabVrLabel;
		
		/// <summary>
		/// TextBox for the Vrijednost property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxVrijednost;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Vrijednost property.
		/// </summary>
		protected System.Windows.Forms.Label uxVrijednostLabel;
		
		/// <summary>
		/// TextBox for the Zbroj property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxZbroj;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Zbroj property.
		/// </summary>
		protected System.Windows.Forms.Label uxZbrojLabel;
		
		/// <summary>
		/// TextBox for the Ispravak property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxIspravak;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Ispravak property.
		/// </summary>
		protected System.Windows.Forms.Label uxIspravakLabel;
		
		/// <summary>
		/// TextBox for the AmVrijednost property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxAmVrijednost;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the AmVrijednost property.
		/// </summary>
		protected System.Windows.Forms.Label uxAmVrijednostLabel;
		
		/// <summary>
		/// TextBox for the KnjizVrijednost property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxKnjizVrijednost;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the KnjizVrijednost property.
		/// </summary>
		protected System.Windows.Forms.Label uxKnjizVrijednostLabel;
		
		/// <summary>
		/// TextBox for the IDUserCreated property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxIDUserCreated;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDUserCreated property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDUserCreatedLabel;
		
		/// <summary>
		/// DataTimePicker for the DatumZapisa property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxDatumZapisa;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the DatumZapisa property.
		/// </summary>
		protected System.Windows.Forms.Label uxDatumZapisaLabel;
		#endregion
		
		#region Main entity
		private Entities.OSKartica _OSKartica;
		/// <summary>
		/// Gets or sets the <see cref="Entities.OSKartica"/> entity to edit with this form.
		/// </summary>
		/// <value>The <see cref="Entities.OSKartica"/> instance.</value>
		public Entities.OSKartica OSKartica
		{
			get {return this._OSKartica;}
			set
			{
				this._OSKartica = value;
				if (value != null) 
				{
					this.uxBindingSource.DataSource = value;
					BindControls();
				}			
				
			}
		}
		#endregion
		
		/// <summary>
		/// Binds the controls.
		/// </summary>
		private void BindControls()
		{
			this.uxID.DataBindings.Clear();
			this.uxID.DataBindings.Add("Text", this.uxBindingSource, "ID", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDOS.DataBindings.Clear();
			this.uxIDOS.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDOS", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDatum.DataBindings.Clear();
			this.uxDatum.DataBindings.Add("Value", this.uxBindingSource, "Datum", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxKolicina.DataBindings.Clear();
			this.uxKolicina.DataBindings.Add("Text", this.uxBindingSource, "Kolicina", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDTipRetka.DataBindings.Clear();
			this.uxIDTipRetka.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDTipRetka", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDOrgJed.DataBindings.Clear();
			this.uxIDOrgJed.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDOrgJed", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDOsoba.DataBindings.Clear();
			this.uxIDOsoba.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDOsoba", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxNapomena.DataBindings.Clear();
			this.uxNapomena.DataBindings.Add("Text", this.uxBindingSource, "Napomena", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDStatus.DataBindings.Clear();
			this.uxIDStatus.DataBindings.Add("Text", this.uxBindingSource, "IDStatus", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxNabVr.DataBindings.Clear();
			this.uxNabVr.DataBindings.Add("Text", this.uxBindingSource, "NabVr", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxVrijednost.DataBindings.Clear();
			this.uxVrijednost.DataBindings.Add("Text", this.uxBindingSource, "Vrijednost", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxZbroj.DataBindings.Clear();
			this.uxZbroj.DataBindings.Add("Text", this.uxBindingSource, "Zbroj", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIspravak.DataBindings.Clear();
			this.uxIspravak.DataBindings.Add("Text", this.uxBindingSource, "Ispravak", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxAmVrijednost.DataBindings.Clear();
			this.uxAmVrijednost.DataBindings.Add("Text", this.uxBindingSource, "AmVrijednost", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxKnjizVrijednost.DataBindings.Clear();
			this.uxKnjizVrijednost.DataBindings.Add("Text", this.uxBindingSource, "KnjizVrijednost", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDUserCreated.DataBindings.Clear();
			this.uxIDUserCreated.DataBindings.Add("Text", this.uxBindingSource, "IDUserCreated", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDatumZapisa.DataBindings.Clear();
			this.uxDatumZapisa.DataBindings.Add("Value", this.uxBindingSource, "DatumZapisa", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
		}					
		
		#region Constructor
		
		/// <summary>
		/// Initializes a new instance of the <see cref="OSKarticaEditControlBase"/> class.
		/// </summary>
		public OSKarticaEditControlBase()
		{
			InitializeComponent();			
			
			this.uxBindingSource.CurrentItemChanged += new System.EventHandler(uxBindingSource_currentItemChanged);
		}		
		
		/// <summary>
		/// 
		/// </summary>
		private void uxBindingSource_currentItemChanged(object sender, System.EventArgs e)
		{
			if (_OSKartica != null) _OSKartica.Validate();
		}	
				
		/// <summary>
		/// Initializes the component.
		/// </summary>
		public void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.uxErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxBindingSource = new System.Windows.Forms.BindingSource(this.components);
			
			//this.uxTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
			this.uxID = new System.Windows.Forms.TextBox();
			uxIDLabel = new System.Windows.Forms.Label();
			this.uxIDOS = new System.Windows.Forms.ComboBox();
			uxIDOSLabel = new System.Windows.Forms.Label();
			this.uxDatum = new System.Windows.Forms.DateTimePicker();
			uxDatumLabel = new System.Windows.Forms.Label();
			this.uxKolicina = new System.Windows.Forms.TextBox();
			uxKolicinaLabel = new System.Windows.Forms.Label();
			this.uxIDTipRetka = new System.Windows.Forms.ComboBox();
			uxIDTipRetkaLabel = new System.Windows.Forms.Label();
			this.uxIDOrgJed = new System.Windows.Forms.ComboBox();
			uxIDOrgJedLabel = new System.Windows.Forms.Label();
			this.uxIDOsoba = new System.Windows.Forms.ComboBox();
			uxIDOsobaLabel = new System.Windows.Forms.Label();
			this.uxNapomena = new System.Windows.Forms.TextBox();
			uxNapomenaLabel = new System.Windows.Forms.Label();
			this.uxIDStatus = new System.Windows.Forms.TextBox();
			uxIDStatusLabel = new System.Windows.Forms.Label();
			this.uxNabVr = new System.Windows.Forms.TextBox();
			uxNabVrLabel = new System.Windows.Forms.Label();
			this.uxVrijednost = new System.Windows.Forms.TextBox();
			uxVrijednostLabel = new System.Windows.Forms.Label();
			this.uxZbroj = new System.Windows.Forms.TextBox();
			uxZbrojLabel = new System.Windows.Forms.Label();
			this.uxIspravak = new System.Windows.Forms.TextBox();
			uxIspravakLabel = new System.Windows.Forms.Label();
			this.uxAmVrijednost = new System.Windows.Forms.TextBox();
			uxAmVrijednostLabel = new System.Windows.Forms.Label();
			this.uxKnjizVrijednost = new System.Windows.Forms.TextBox();
			uxKnjizVrijednostLabel = new System.Windows.Forms.Label();
			this.uxIDUserCreated = new System.Windows.Forms.TextBox();
			uxIDUserCreatedLabel = new System.Windows.Forms.Label();
			this.uxDatumZapisa = new System.Windows.Forms.DateTimePicker();
			uxDatumZapisaLabel = new System.Windows.Forms.Label();
			
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).BeginInit();
			this.SuspendLayout();
			
			// 
			// uxTableLayoutPanel
			// 
			//this.uxTableLayoutPanel.AutoSize = true;
			//this.uxTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			//this.uxTableLayoutPanel.ColumnCount = 2;
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 250F));
			//this.uxTableLayoutPanel.Location = new System.Drawing.System.Drawing.Point(3, 3);
			//this.uxTableLayoutPanel.Name = "uxTableLayoutPanel";
			//this.uxTableLayoutPanel.RowCount = 2;
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.Size = new System.Drawing.Size(450, 50);
			//this.uxTableLayoutPanel.TabIndex = 0;
			
			//
			// uxErrorProvider
			//
			this.uxErrorProvider.ContainerControl = this;
			this.uxErrorProvider.DataSource = this.uxBindingSource;
			
			//
			// uxIDLabel
			//
			this.uxIDLabel.Text = "ID:";
			this.uxIDLabel.Location = new System.Drawing.Point(3, 0);
			this.Controls.Add(this.uxIDLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDLabel);			
			//
			// uxID
			//
			this.uxID.ReadOnly = true;
			//this.uxTableLayoutPanel.Controls.Add(this.uxID);
			this.uxID.Location = new System.Drawing.Point(160, 0);
			this.Controls.Add(this.uxID);
			//
			// uxIDOSLabel
			//
			this.uxIDOSLabel.Text = "IDOS:";
			this.uxIDOSLabel.Location = new System.Drawing.Point(3, 26);
			this.Controls.Add(this.uxIDOSLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDOSLabel);			
			//
			// uxIDOS
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDOS);
			this.uxIDOS.Location = new System.Drawing.Point(160, 26);
			this.Controls.Add(this.uxIDOS);
			//
			// uxDatumLabel
			//
			this.uxDatumLabel.Text = "Datum:";
			this.uxDatumLabel.Location = new System.Drawing.Point(3, 52);
			this.Controls.Add(this.uxDatumLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumLabel);			
			//
			// uxDatum
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatum);
			this.uxDatum.Location = new System.Drawing.Point(160, 52);
			this.Controls.Add(this.uxDatum);
			//
			// uxKolicinaLabel
			//
			this.uxKolicinaLabel.Text = "Kolicina:";
			this.uxKolicinaLabel.Location = new System.Drawing.Point(3, 78);
			this.Controls.Add(this.uxKolicinaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxKolicinaLabel);			
			//
			// uxKolicina
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxKolicina);
			this.uxKolicina.Location = new System.Drawing.Point(160, 78);
			this.Controls.Add(this.uxKolicina);
			//
			// uxIDTipRetkaLabel
			//
			this.uxIDTipRetkaLabel.Text = "IDTipRetka:";
			this.uxIDTipRetkaLabel.Location = new System.Drawing.Point(3, 104);
			this.Controls.Add(this.uxIDTipRetkaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDTipRetkaLabel);			
			//
			// uxIDTipRetka
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDTipRetka);
			this.uxIDTipRetka.Location = new System.Drawing.Point(160, 104);
			this.Controls.Add(this.uxIDTipRetka);
			//
			// uxIDOrgJedLabel
			//
			this.uxIDOrgJedLabel.Text = "IDOrgJed:";
			this.uxIDOrgJedLabel.Location = new System.Drawing.Point(3, 130);
			this.Controls.Add(this.uxIDOrgJedLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDOrgJedLabel);			
			//
			// uxIDOrgJed
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDOrgJed);
			this.uxIDOrgJed.Location = new System.Drawing.Point(160, 130);
			this.Controls.Add(this.uxIDOrgJed);
			//
			// uxIDOsobaLabel
			//
			this.uxIDOsobaLabel.Text = "IDOsoba:";
			this.uxIDOsobaLabel.Location = new System.Drawing.Point(3, 156);
			this.Controls.Add(this.uxIDOsobaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDOsobaLabel);			
			//
			// uxIDOsoba
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDOsoba);
			this.uxIDOsoba.Location = new System.Drawing.Point(160, 156);
			this.Controls.Add(this.uxIDOsoba);
			//
			// uxNapomenaLabel
			//
			this.uxNapomenaLabel.Text = "Napomena:";
			this.uxNapomenaLabel.Location = new System.Drawing.Point(3, 182);
			this.Controls.Add(this.uxNapomenaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxNapomenaLabel);			
			//
			// uxNapomena
			//
			this.uxNapomena.Width = 250;
			this.uxNapomena.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxNapomena);
			this.uxNapomena.Location = new System.Drawing.Point(160, 182);
			this.Controls.Add(this.uxNapomena);
			//
			// uxIDStatusLabel
			//
			this.uxIDStatusLabel.Text = "IDStatus:";
			this.uxIDStatusLabel.Location = new System.Drawing.Point(3, 208);
			this.Controls.Add(this.uxIDStatusLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDStatusLabel);			
			//
			// uxIDStatus
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDStatus);
			this.uxIDStatus.Location = new System.Drawing.Point(160, 208);
			this.Controls.Add(this.uxIDStatus);
			//
			// uxNabVrLabel
			//
			this.uxNabVrLabel.Text = "NabVr:";
			this.uxNabVrLabel.Location = new System.Drawing.Point(3, 234);
			this.Controls.Add(this.uxNabVrLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxNabVrLabel);			
			//
			// uxNabVr
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxNabVr);
			this.uxNabVr.Location = new System.Drawing.Point(160, 234);
			this.Controls.Add(this.uxNabVr);
			//
			// uxVrijednostLabel
			//
			this.uxVrijednostLabel.Text = "Vrijednost:";
			this.uxVrijednostLabel.Location = new System.Drawing.Point(3, 260);
			this.Controls.Add(this.uxVrijednostLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxVrijednostLabel);			
			//
			// uxVrijednost
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxVrijednost);
			this.uxVrijednost.Location = new System.Drawing.Point(160, 260);
			this.Controls.Add(this.uxVrijednost);
			//
			// uxZbrojLabel
			//
			this.uxZbrojLabel.Text = "Zbroj:";
			this.uxZbrojLabel.Location = new System.Drawing.Point(3, 286);
			this.Controls.Add(this.uxZbrojLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxZbrojLabel);			
			//
			// uxZbroj
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxZbroj);
			this.uxZbroj.Location = new System.Drawing.Point(160, 286);
			this.Controls.Add(this.uxZbroj);
			//
			// uxIspravakLabel
			//
			this.uxIspravakLabel.Text = "Ispravak:";
			this.uxIspravakLabel.Location = new System.Drawing.Point(3, 312);
			this.Controls.Add(this.uxIspravakLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIspravakLabel);			
			//
			// uxIspravak
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIspravak);
			this.uxIspravak.Location = new System.Drawing.Point(160, 312);
			this.Controls.Add(this.uxIspravak);
			//
			// uxAmVrijednostLabel
			//
			this.uxAmVrijednostLabel.Text = "AmVrijednost:";
			this.uxAmVrijednostLabel.Location = new System.Drawing.Point(3, 338);
			this.Controls.Add(this.uxAmVrijednostLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxAmVrijednostLabel);			
			//
			// uxAmVrijednost
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxAmVrijednost);
			this.uxAmVrijednost.Location = new System.Drawing.Point(160, 338);
			this.Controls.Add(this.uxAmVrijednost);
			//
			// uxKnjizVrijednostLabel
			//
			this.uxKnjizVrijednostLabel.Text = "KnjizVrijednost:";
			this.uxKnjizVrijednostLabel.Location = new System.Drawing.Point(3, 364);
			this.Controls.Add(this.uxKnjizVrijednostLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxKnjizVrijednostLabel);			
			//
			// uxKnjizVrijednost
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxKnjizVrijednost);
			this.uxKnjizVrijednost.Location = new System.Drawing.Point(160, 364);
			this.Controls.Add(this.uxKnjizVrijednost);
			//
			// uxIDUserCreatedLabel
			//
			this.uxIDUserCreatedLabel.Text = "IDUserCreated:";
			this.uxIDUserCreatedLabel.Location = new System.Drawing.Point(3, 390);
			this.Controls.Add(this.uxIDUserCreatedLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDUserCreatedLabel);			
			//
			// uxIDUserCreated
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDUserCreated);
			this.uxIDUserCreated.Location = new System.Drawing.Point(160, 390);
			this.Controls.Add(this.uxIDUserCreated);
			//
			// uxDatumZapisaLabel
			//
			this.uxDatumZapisaLabel.Text = "DatumZapisa:";
			this.uxDatumZapisaLabel.Location = new System.Drawing.Point(3, 416);
			this.Controls.Add(this.uxDatumZapisaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumZapisaLabel);			
			//
			// uxDatumZapisa
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumZapisa);
			this.uxDatumZapisa.Location = new System.Drawing.Point(160, 416);
			this.Controls.Add(this.uxDatumZapisa);
			//
			// uxIDOrgJed
			//				
			this.uxIDOrgJed.DisplayMember = "Naziv";	
			this.uxIDOrgJed.ValueMember = "ID";	
			//
			// uxIDOS
			//				
			this.uxIDOS.DisplayMember = "IDParentOS";	
			this.uxIDOS.ValueMember = "ID";	
			//
			// uxIDOsoba
			//				
			this.uxIDOsoba.DisplayMember = "Ime";	
			this.uxIDOsoba.ValueMember = "ID";	
			//
			// uxIDTipRetka
			//				
			this.uxIDTipRetka.DisplayMember = "Naziv";	
			this.uxIDTipRetka.ValueMember = "ID";	
			// 
			// OSKarticaEditControlBase
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			//this.Controls.Add(this.uxTableLayoutPanel);
			this.AutoScroll = true;
			this.Name = "OSKarticaEditControlBase";
			this.Size = new System.Drawing.Size(478, 311);
			//this.Localizable = true;
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).EndInit();			
			this.ResumeLayout(false);
			this.PerformLayout();
		}
		#endregion
				
		#region ComboBox List
		
				
		private Entities.TList<Entities.Organizacija> _IDOrgJedList;
		
		/// <summary>
		/// The ComboBox associated with the IDOrgJed property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Organizacija> IDOrgJedList
		{
			get {return _IDOrgJedList;}
			set 
			{
				this._IDOrgJedList = value;
				this.uxIDOrgJed.DataSource = null;
				this.uxIDOrgJed.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDOrgJedList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDOrgJed property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDOrgJedList
		{
			get { return _allowNewItemInIDOrgJedList;}
			set
			{
				this._allowNewItemInIDOrgJedList = value;
				this.uxIDOrgJed.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.OsnovnoSredstvo> _IDOSList;
		
		/// <summary>
		/// The ComboBox associated with the IDOS property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.OsnovnoSredstvo> IDOSList
		{
			get {return _IDOSList;}
			set 
			{
				this._IDOSList = value;
				this.uxIDOS.DataSource = null;
				this.uxIDOS.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDOSList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDOS property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDOSList
		{
			get { return _allowNewItemInIDOSList;}
			set
			{
				this._allowNewItemInIDOSList = value;
				this.uxIDOS.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.Osoba> _IDOsobaList;
		
		/// <summary>
		/// The ComboBox associated with the IDOsoba property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Osoba> IDOsobaList
		{
			get {return _IDOsobaList;}
			set 
			{
				this._IDOsobaList = value;
				this.uxIDOsoba.DataSource = null;
				this.uxIDOsoba.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDOsobaList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDOsoba property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDOsobaList
		{
			get { return _allowNewItemInIDOsobaList;}
			set
			{
				this._allowNewItemInIDOsobaList = value;
				this.uxIDOsoba.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.OSTipRetka> _IDTipRetkaList;
		
		/// <summary>
		/// The ComboBox associated with the IDTipRetka property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.OSTipRetka> IDTipRetkaList
		{
			get {return _IDTipRetkaList;}
			set 
			{
				this._IDTipRetkaList = value;
				this.uxIDTipRetka.DataSource = null;
				this.uxIDTipRetka.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDTipRetkaList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDTipRetka property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDTipRetkaList
		{
			get { return _allowNewItemInIDTipRetkaList;}
			set
			{
				this._allowNewItemInIDTipRetkaList = value;
				this.uxIDTipRetka.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
		
		#endregion
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	}
}
